package com.demo.event;

import org.springframework.context.ApplicationEvent;

/*
 * 这个是一个监听事件类
 * */
public class DemoEvent02 extends ApplicationEvent {
    private String message;

    public DemoEvent02(Object source, String message) {
        super(source);
        this.message = message;
    }

    public void eventPublish() {
        System.out.println("listen context is " + message);
    }
}
